package com.example.demo;

import com.example.demo.service.IService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.Arrays;

@SpringBootApplication
@EnableFeignClients(basePackages="com.example.demo.service")
public class ClientDemoApplication {


	public static void main(String[] args) {
		ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(ClientDemoApplication.class, args);
		IService service = configurableApplicationContext.getBean(IService.class);
		service.show(Arrays.asList("1","2","54")).forEach(System.err::println);
	}
}
